package com.example.geckohurricanes;

public class Contact {

	int _id, admin, locked = 0;
	String _name, _password;
	
	public Contact() {
	}
	
	public Contact(int id, String name, String password) {
		this.admin = 0;
		this._id = id;
		this._name = name;
		this._password = password;
	}
	
	public Contact(String name, String password, int admin) {
		this.admin = admin;
		this._name = name;
		this._password = password;
	}
	
	public Contact(String name, String password) {
		this.admin = 0;
		this._name = name;
		this._password = password;
	}
	
	public int getId() {
		return this._id;
	}
	
	public void setId(int id) {
		this._id = id;
	}
	
	public String getName() {
		return this._name;
	}
	
	public void setName(String name) {
		this._name = name;
	}
	
	public String getPass() {
		return this._password;
	}
	
	public void setPass(String pass) {
		this._password = pass;
	}
	
	public int getAdmin() {
		return this.admin;
	}
	
	public void setAdmin(int admin) {
		this.admin = admin;
	}
	
	public int getLocked() {
		return this.locked;
	}
	
	public void setLocked(int i) {
		this.locked = i;
	}
	
	public boolean equals(Contact b) {
		if (this._name.equals(b.getName()) && this._password .equals(b.getPass())) {
			return true;
		} else {
			return false;
		}
	}

}
